package com.company.crm.workbench.service.impl;

import com.company.crm.workbench.domain.ActivityRemark;
import com.company.crm.workbench.mapper.ActivityRemarkMapper;
import com.company.crm.workbench.service.ActivityRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：王磊栋
 * 2021/4/19
 */
@Service
public class ActivityRemarkServiceImpl implements ActivityRemarkService {
    @Autowired
    private ActivityRemarkMapper activityRemarkMapper;

    @Override
    public List<ActivityRemark> selectAllActivityRemarkById(String id) {
        return activityRemarkMapper.selectAllActivityRemarkById(id);
    }

    @Override
    public int deleteActivityRemark(String id) {
        return activityRemarkMapper.deleteActivityRemark(id);
    }

    @Override
    public int insertActivityRemark(ActivityRemark activityRemark) {
        return activityRemarkMapper.insertActivityRemark(activityRemark);
    }
/*    @Override
    public ActivityRemark queryActivityRemarkById(String id) {
        return activityRemarkMapper.selectActivityRemarkById(id) ;
    }*/

    @Override
    public int updateActivityRemark(ActivityRemark activityRemark) {
        return activityRemarkMapper.updateActivityRemark(activityRemark);
    }
}
